package com.jule.teenpatti.game.bean;

//import com.jule.game.config.SignreachConfig;

/**
 * @author xujian 2117-12-14
 */
public class demo {
    public static void main(String[] args) {
//        Config.load();
        //计算下一个下注玩家的座位号
        int preBetSeatNum = 4;
        int blabla = 3;
        int nextBetSeatNum = preBetSeatNum;
        while(true){
            nextBetSeatNum = nextBetSeatNum + 1;
            if(nextBetSeatNum > 5){
                nextBetSeatNum = 1;
            }
            ////再次找到当前位置，说明已无合适下一个行动者，返回null
            if(nextBetSeatNum == preBetSeatNum){
                System.out.println("再次找到当前位置，说明已无合适下一个行动者");
                return;
            }

            if(nextBetSeatNum == blabla){
                System.out.println("找到合适的了！！！"+nextBetSeatNum);
                return;
            }
        }
//        System.out.println(SignreachConfig.GUESTFIRSTDAY);
    }
}
